using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPsRetirement")]
    public class PsRetirement
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "RetireId", ResourceType = typeof(Resources.PsRetirementsResource))]
        public int RetireId { get; set; }

		[ForeignKey("EmpType")]
		[DataMember, Display(Name = "EmpTypeId", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<int> EmpTypeId { get; set; }

		[DataMember, Display(Name = "RetireYear", ResourceType = typeof(Resources.PsRetirementsResource))]
        public int RetireYear { get; set; }

		[DataMember, Display(Name = "StartDate", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<System.DateTime> StartDate { get; set; }

		[ForeignKey("JobSite")]
		[DataMember, Display(Name = "JobSiteId", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<int> JobSiteId { get; set; }

		[DataMember, Display(Name = "RefNo", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string RefNo { get; set; }

		[DataMember, Display(Name = "RetireTitle", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string RetireTitle { get; set; }

		[DataMember, Display(Name = "RetireDescr", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string RetireDescr { get; set; }

		[DataMember, Display(Name = "ApprovedDate", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<System.DateTime> ApprovedDate { get; set; }

		[DataMember, Display(Name = "ApprovedName", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string ApprovedName { get; set; }

		[DataMember, Display(Name = "ApprovedPosition", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string ApprovedPosition { get; set; }

		[DataMember, Display(Name = "RetireStatus", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string RetireStatus { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PsRetirementsResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PsRetirementsResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

        public virtual HRM.MasEmployeeType EmpType { get; set; }

		public virtual HRM.JobSite JobSite { get; set; }

    }
}